package com.aoip.telemetry.telemetry.entity.merge;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author chenbai
 * @version 1.0
 * @date 2022/10/13 22:33
 */
@Data
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("data_merge_rule_detail")
@ApiModel(description = "数据合并规则组信息表")
public class DataMergeRuleDetailEntity implements Serializable {

    private static final long serialVersionUID = -4414324080188895500L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("数据id")
    private String id;

    @TableField(value = "rule_group_id")
    @ApiModelProperty("关联合并规则组id")
    private String ruleGroupId;

    @TableField(value = "rule_source_table")
    @ApiModelProperty("合并原表表名")
    private String ruleSourceTable;

    @TableField(value = "rule_source_field")
    @ApiModelProperty("合并原表字段名")
    private String ruleSourceField;

    @TableField(value = "rule_target_field")
    @ApiModelProperty("合并目标表字段名")
    private String ruleTargetField;

    @TableField(value = "limit_time_field")
    @ApiModelProperty("时间限制条件字段")
    private String limitTimeField;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime modifyTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("删除标识")
    @TableLogic
    private Integer delFlag;

    @TableField(value = "bz")
    @ApiModelProperty("备注信息")
    private String bz;

}
